package com.eleadin.ruleengine.controller.base;

import com.eleadin.ruleengine.utils.Result;
import org.springframework.validation.BindingResult;

/**
 * Created by john on 2017/4/11.
 */
public class BaseController {

    public Result result(BindingResult bindingResult) {
        return Result.fail(bindingResult.getFieldError().getDefaultMessage());
    }


}
